import request from '@/utils/request'

export const LineSectionSeatApi = {
  /**
   *  线路组分页列表
   * @returns
   */
  getList: (lineSectionId, vehicleTypeId) => {
    return request({
      url: '/manage/intercity/lineSectionSeat/getList',
      params:{lineSectionId,vehicleTypeId},
      method: 'get'
    })
  },

  /**
   *  批量添加座位价格
   * @returns
   */
  batchAdd: (data) => {
    return request({
      url: '/manage/intercity/lineSectionSeat/batchAdd',
      data,
      method: 'post'
    })
  },

  /**
   *  修改座位价格
   * @returns
   */
  update: (data) => {
    return request({
      url: '/manage/intercity/lineSectionSeat/update',
      data,
      method: 'post'
    })
  },
  /**
   *  批量添加座位价格
   * @returns
   */
  insert: (data) => {
    return request({
      url: '/manage/intercity/lineSectionSeat/insert',
      data,
      method: 'post'
    })
  }
}
